#include <iostream>
#include <sstream>
using namespace std;


int main(void)
{
    string in;
    while(cin >> in) {
        stringstream ss;
        int index = in.find_last_of(".");
        string z = in.substr(0, index);
        string x = in.substr(index + 1);
        ss << z;
        ss >> index;
        if (x.at(0) > '4') {
            index++;
        }
        cout << index << endl;
    }

    return 0;
}
